<%@ Page Language="C#" MasterPageFile="~/Default.master" AutoEventWireup="true" CodeBehind="PendingDownloads.aspx.cs" Inherits="MusicmanWeb.USER.PendingDownloads" Title="Musicman Levi9 | Pending downloads overview" %>
<%@ Register Namespace="MusicmanWeb.Custom" TagPrefix="x" Assembly="MusicmanWeb" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Main" runat="server">
<div class="shim column"></div>
<div class="page" id="home">
    <div id="sidebar">
        <table>
            <tr>
                <th colspan="2">
                    Legenda
                </th>
            </tr>
            <tr>
                <td class="oldfiles" style="width: 20px;">
                    &nbsp;
                </td>
                <td>
                    old files
                </td>
            </tr>
            <tr>
                <td class="newfiles" style="width: 20px;">
                    &nbsp;
                </td>
                <td>
                    new files
                </td>
            </tr>
        </table>    
    </div>
   <div id="content">
   <x:MyGridView runat="server" ID="PendingDownloadsGV" 
          AutoGenerateCheckBoxColumn="True" 
            AutoGenerateColumns="false"
            DataKeyNames="SearchFileID"
            AllowPaging="True" 
            PageSize="10" 
            AllowSorting="true"
            CheckBoxColumnIndex="6" 
            visible="true" 
            Width="640px"
            PagerSettings-Position="TopAndBottom"
            OnRowDataBound="PendingDownloadsGV_RowDataBound"
            OnPageIndexChanging="PendingDownloadsGV_PageIndexChanging">
            <Columns>
             <asp:BoundField HeaderText="Location" ItemStyle-Width="300px" />
             <asp:BoundField HeaderText="Name" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="300px" />
             <asp:BoundField HeaderText="Size" ItemStyle-HorizontalAlign="Right" ItemStyle-Wrap="false"/>
                <asp:TemplateField>
                    <ItemTemplate>
                        <a href='GetFile.axd?SEARCHFILEID=<%# Eval("SearchFileID") %>'><img src="../Images/download.png" width="20" height="20" alt="download" /></a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <a href='#' onclick="window.open('FileStats.aspx?SearchFileID=<%# Eval("SearchFileID") %>', 'filestats', ',width=500,height=300,menubar=no,breplace=yes').focus();" >
                            <img src="../Images/clipboard.png" width="20" height="20" alt="details" />
                        </a>                                    
                    </ItemTemplate> 
                </asp:TemplateField>
            </Columns>
</x:MyGridView>

        <br />
        <asp:LinkButton ID="RemoveButton" runat="server" CausesValidation="True" CommandName="Update"
        Text="Remove from downloads" OnCommand="RemoveButton_Command" ></asp:LinkButton>
        <%--<a href="DOWNLOAD/Musicman.Client.application" >Start downloading</a>--%>
        <br />
        <br />
</div>
</div>
</asp:Content>
